from Interface.litemall_po.apis.base_api import BaseApi


class Cart(BaseApi):
    def add_cart(self, goods_id, products_id):
        url = "wx/cart/add"
        cart_data = {"goodsId": goods_id, "number": 1, "productId": products_id}
        r = self.send("post", url, json=cart_data, headers={"X-Litemall-Token": self.client_token})
        return r